from gameset.phoenicia.base import *

from .cloth import Linen
from .dyes import CommonDye


class Carpets(Property):
    singular  =_ ('Carpet')
    plural    =_ ('Carpets')
    happiness =_ (1.0)
    consumed  =_ (0.2)


class CarpetMaker(Workshop):
    name     =_ ('Carpet Maker')
    color    =_ (Purple.with_value(0.4).with_saturation(0.4))
    cost     =_ (700)
    size     =_ (2)
    staff    =_ (6)
    produces =_ (Production(input = (Linen(1), CommonDye(3)), output = Carpets(1), duration = 0.2))
